﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ScoutWizard
{
    public partial class FormWin : Form
    {
        public FormWin()
        {
            InitializeComponent();
            this.WindowState = FormWindowState.Maximized;
        }

        private void FormWin_Load(object sender, EventArgs e)
        {
            Properties.Settings Settings = new ScoutWizard.Properties.Settings();
            pictureBox1.ImageLocation = Settings.WinUrl;
            pictureBox1.Height = Height;
            pictureBox1.Width = Width;
            pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
        }

        private void FormWin_SizeChanged(object sender, EventArgs e)
        {
            pictureBox1.Height = Height;
            pictureBox1.Width = Width;
            label1.Left = Width / 2 - label1.Width / 2;
            label1.Top = Height / 2 - label1.Height / 2;
        }
    }
}
